<script>
	import {getUserInfo} from '@/common/api.js'
	export default {
		globalData: {
			// 用户信息
			userInfo: {
				avatar: null,
				nickName: null,
				gender: null,
				birthday: null,
				mobile: null,
				email: null
			}
		},
		onLaunch: function() {
			
		},
		onShow: function() {

		},
		onHide: function() {
		
		},
		methods: {
			getUserInfo(callback) {
				getUserInfo().then(res => {
					if (res.code == 200) {
						this.globalData.userInfo = res.data;
						callback(res.data);
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	@import "@/uni_modules/uview-ui/index.scss";
	@import "@/colorui/main.css";
	@import "@/colorui/icon.css";
	/* #ifndef APP-NVUE */
	@import '@/static/css/customicons.css';
	/* #endif */
</style>
